﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MDS
{
    public class RaptorRepositoryFactory:IRepositoryFactory 
    {
        public IMessageRepository GetMessagePepository(string key)
        {
            return RaptorMessageRepository.GetInstance(key);
        }

        public ISnapshotRepository<T> GetSnapshotRepository<T>(string key) where T : Protocol.IMessage
        {
            return RaptorSnapshotRepository<T>.GetInstance(key);
        }
    }
}
